using System.Linq;

namespace eBookDirectory.Infrastructure.Repository
{
    public interface IRepository<TEntity>
    {
        TEntity Save(TEntity instance);
        void Update(TEntity instance);
        void Remove(TEntity instance);
        TEntity GetById(long id);
        IQueryable<TEntity> FindAll();
    }
}